Skip to content

Fix compiler flags to be compatible with ESP8622/Arduino #813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 6, 2017
Merged

Fix compiler flags to be compatible with ESP8622/Arduino #813

merged 3 commits into from
Nov 6, 2017

Conversation

CONSULitAS
Copy link
Contributor

see also "fix NodeMCU-32S .build.board property" (#812 (comment))

-DARDUINO_BOARD={build.board} is missing

With this fix you get a macro ARDUINO_BOARD with the name of the selected board (e.g. "NodeMCU-32S").

https://github.com/esp8266/Arduino/blob/master/platform.txt#L75
https://github.com/esp8266/Arduino/blob/master/platform.txt#L78
https://github.com/esp8266/Arduino/blob/master/platform.txt#L81

Jochen Groppe added 3 commits November 5, 2017 17:12
The .build.board=xx proptery is used for generating a macro named "ARDUINO_xxx".

C macro names should never have a "-" sign.

* current: ARDUINO_NodeMCU-32S
* should be: ARDUINO_=NodeMCU_32S
see also "fix NodeMCU-32S .build.board property" #812 (#812 (comment))

`-DARDUINO_BOARD={build.board}` **is missing**
@me-no-dev me-no-dev merged commit 1b2eb44 into espressif:master Nov 6, 2017
@me-no-dev
Copy link
Member

Nice :) don't know how I missed that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants